import { MyRequestOptions,HttpResponse } from './type';
import request from '@/utils/api/request';

export const releaseVpsDemand = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/releaseVpsDemand`;
  return request.post(option);
};
export const queryVpsDemandList = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/queryVpsDemandList`;
  return request.post(option);
};
export const queryVpsOrderItem = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/queryVpsOrderItem`;
  return request.post(option);
};
export const getVpsDemandDetails = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/getVpsDemandDetails`;
  return request.post(option);
};
export const getVpsDemandItem = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/getVpsDemandItem`;
  return request.post(option);
};
export const dleVpsDemand = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/dleVpsDemand`;
  return request.post(option);
};

export const queryMapVpsDemand = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/queryMapVpsDemand`;
  return request.post(option);
};

export const queryVpsOrderList = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/queryVpsOrderList`;
  return request.post(option);
};
export const updateVpsState = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/updateVpsState`;
  return request.post(option);
};
export const createVpsOrder = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/createVpsOrder`;
  return request.post(option);
};
export const updateVpsOrderState = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/updateVpsOrderState`;
  return request.post(option);
};
export const setVpsOrderState = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/setVpsOrderState`;
  return request.post(option);
};
export const payVpsOrder = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/payVpsOrder`;
  return request.post(option);
};
export const cancelVpsOrderState = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/cancelVpsOrderState`;
  return request.post(option);
};
export const updateEmpVpsOrderState = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/updateEmpVpsOrderState`;
  return request.post(option);
};
export const updateBossVpsOrderState = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/updateBossVpsOrderState`;
  return request.post(option);
};
export const queryVpsDataCount = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/vps/queryVpsDataCount`;
  return request.get(option);
};
export const storeHasStore = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/store/hasStore`;
  return request.get(option);
};
export const getLat = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/district/getLat`;
  return request.get(option);
};
export const queryOfflineOrderList = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/order/secure/queryOfflineOrderList`;
  return request.post(option);
};
 